package com.fingard.dsp.bank.reqrespobj.billpool;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.billpool.Detail.RetAtsB308PoolAmountAdjustQryDetail;
import com.fingard.xml.XmlTextWriter;

/*池额度调剂查询
* */
public class RetAtsB308PoolAmonutAdustQry extends RetAtsBase{
    public String RespCode;
    public String RespInfo;

    public RetAtsB308PoolAmonutAdustQry(ReqRespHeader p_header) {
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();//用于输出返回ATS的XML报文
    }

    public void writeBefore(){
        writeStart();
        retXmlWriter.writeElementString("RespCode", RespCode);
        retXmlWriter.writeElementString("RespInfo", RespInfo);
    }

    public void WriteAfter() {
        writeEnd();
    }

    public void writeDetail(RetAtsB308PoolAmountAdjustQryDetail B308Detail) {
        retXmlWriter.writeStartElement("DetailRecord");

        retXmlWriter.writeElementString("HostAccountNum",B308Detail.HostAccountNum);
        retXmlWriter.writeElementString("HostName",B308Detail.HostName);
        retXmlWriter.writeElementString("ClientAccountNum",B308Detail.ClientAccountNum);
        retXmlWriter.writeElementString("ClientName",B308Detail.ClientName);
        retXmlWriter.writeElementString("AccountType",B308Detail.AccountType);

        retXmlWriter.writeElementString("PoolTopLimit",B308Detail.PoolTopLimit);
        retXmlWriter.writeElementString("AdjustAmount",B308Detail.AdjustAmount);
        retXmlWriter.writeElementString("TransDate",B308Detail.TransDate);
        retXmlWriter.writeElementString("TransTime",B308Detail.TransTime);
        retXmlWriter.writeElementString("AllocatedClientAccountNum",B308Detail.AllocatedClientAccountNum);
        retXmlWriter.writeElementString("AllocatedClientName",B308Detail.AllocatedClientName);

        retXmlWriter.writeEndElement();
    }
}
